<template>
  <div class="app-container code-sharing">
    <div class="search-box">
      知识库搜索引擎:
      <el-input
        v-model="input"
        placeholder="请输入你要搜索的资料内容"
      ></el-input>
      <el-button type="primary" icon="el-icon-search">搜索</el-button>
    </div>
    <div class="top">
      <img src="@/assets/images/sgjHome/left-icon.png" alt="" />
      <span>数据概览</span>
      <img src="@/assets/images/sgjHome/right-icon.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Index',
  data () {
    return {
      // 版本号
      input: '',
      version: '3.8.8'
    }
  },
  methods: {
    goTarget (href) {
      window.open(href, '_blank')
    }
  }
}
</script>

<style scoped lang="scss">
.code-sharing {
  .top {
    text-align: center;
    margin-top: 50px;
    border-bottom: 1px solid rgb(190, 213, 255);
    padding-bottom: 10px;
    img {
      vertical-align: middle;
    }
    span {
      margin: 0 10px;
      vertical-align: middle;
      font-size: 24px;
      color: rgb(68, 75, 86);
      font-weight: 700;
    }
  }
  padding: 24px 260px;
  background: rgb(247, 248, 251);
  .search-box {
    border-radius: 4px;
    padding: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    ::v-deep .el-input {
      width: 0;
      flex: 1;
      margin-left: 10px;
    }
  }
}
</style>
